package com.test.httpclient;

import org.json.JSONException;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by yang on 17/3/10.
 */
public class TeaLogin {
    public static void main(String args[]) throws IOException, JSONException {
        String url = "http://beta.ssapinew.knowbox.cn:9001/teacher/user-new/login";
        Map<String, String> login = new HashMap<>();
        login.put("mobile","13700000001");
        login.put("password","123456");
        login.put("version","289");
        System.out.println(Post.sendPost(url, login));
    }
}
